public class SkinExporterCategories : SkinsExporterPanel
{
	public static SkinExporterCategories instance;

	public override void Awake()
	{
		base.Awake();
		instance = this;
	}

	public override void InitButtons()
	{
		base.InitButtons();
		int num = 0;
		foreach (string subCategory in MarketController.Instance.ProductHierarchy.marketCategories.Find((MarketProductsHierarchy.MarketCategory c) => c.name.Equals("Looks")).subCategories)
		{
			SetButton(subCategory, num);
			num++;
		}
		buttonsGrid.repositionNow = true;
	}

	public override void Select(string item, bool selectDefault = true)
	{
		if (!string.IsNullOrEmpty(item) && !selected.Equals(item))
		{
			base.Select(item);
			if (selectDefault)
			{
				SkinExporterWindow.instance.productsPanel.Unselect();
				SkinExporterWindow.instance.productsPanel.InitButtons();
			}
		}
	}
}
